<!DOCTYPE html>
<html>
<head>
    <title>生成模板记录表</title>
    <link href="__PLUGIN_TMPL__/public/assets/layui/css/layui.css" rel="stylesheet" type="text/css">
    <link href="__PLUGIN_TMPL__/public/assets/layui/css/backend.min.css" rel="stylesheet" type="text/css">
    <include file='public/head'>
        <style>
            table th, table td{text-align: center;}
            .ml-10 { margin-left: 10px; }
			.layui-icon{font-size: 14px !important;}
			.layui-form-label{ width: auto;}
			.layui-btn.layui-btn-sm .fa{ font-size: 14px !important;}
			.mr4{ margin-right: 4px;}
			.layui-form-item{ margin-bottom: 0px;}
			.row{ margin: 0 !important;}
        </style>
</head>
<body>

	<div class="wrap js-check-wrap" style="padding: 20px 20px 0px 20px;">
	    <ul class="nav nav-tabs">
	        <php> $currentTab = 15 ;</php>
	        <include file="public/nav" />
	    </ul>
	</div>
    <div class="wrap js-check-wrap margin-top-20">
        <table class="table table-bordered table-hover">
            <thead>
                <tr class="theader">
                	<td width="50">序号</td>
                	<th width="250">网站名称</th>
                    <th width="150">创建人</th>
                    <th width="150">创建时间</th>
                    <th width="50">备注</th>
                    <th width="60">操作</th>
                </tr>
            </thead>
            
            <tbody class="table-body">
            	<volist name ="list" id="vo">
            		<tr>
            			<td>{++$key}</td>
            			<td>{$vo.name}</td>
            			<td>{$vo.user_name}</td>
            			<td>{:date( 'Y-m-d H:i:s' , $vo [ 'add_time' ] )}</td>
            			<td>{$vo.remarks}</td>
            			<td>
            				<if condition="empty($vo.src)">
            					资源文件不存在
            				<else/>
	            				<a href="{$vo.src}" download="<?php echo 'web_site_package_'.basename($vo['src']) ; ?>"><button class="btn btn-success btn-sm">下载文件</button></a>
	            			</if>
							<if condition="cmf_auth_check( cmf_get_current_admin_id() , 'plugin/appmarket/CreateSiteTemplate/recordDel' )">
								<a class="btn btn-danger btn-sm zy-ajax-confirm" href="{:cmf_plugin_url('Appmarket://CreateSiteTemplate/recordDel')}?id={$vo.id}" data-msg="确定要删除此记录吗?">删除</a>
							</if>
            			</td>
            		</tr>
            	</volist>
            </tbody>

        </table>
		<empty name="list">
			暂无数据~
		</empty>
        <div class="pager">{$list->render()}</div>
    </div>
<script src="__PLUGIN_TMPL__/public/assets/layui/layui.all.js"></script>
<include file='public/scripts'>
<script src="__STATIC__/js/custom/custom.js"></script>

</body>
</html>